package com.deke.order.feign;

import com.deke.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author ：Username 刘亦辰（59372312@qq.com）
 * @date ：Created in 2022/12/14 18:27
 * @description：
 * @modified By：
 * @version:
 **/
@FeignClient(value = "education-course")
public interface CourseFeign {

    //根据课程id查课程信息
    @PostMapping("/core/course/queryAllCourse/{courseId}")
    public Result queryAllCourseByID(@RequestBody String courseId);

    //根据课程id查询对应课程id以及教师信息

    @PostMapping("/order/course/queryAllCourseAndTeacherName/{id}")
    public Result queryCourseTeacherByCourseId(@PathVariable("id") String id);
}
